import yaml


class ReadYaml:
    @classmethod
    def __call__(cls):
        with open("config.yaml", "r", encoding='utf-8') as f:
            return yaml.safe_load(f) or {}


if __name__ == '__main__':
    reader = ReadYaml.__call__()
    print(reader)
